

let baseInfo = {
  projectName: `demo`
}


const staticDev = {
  appid: ``, // appid
}

const staticTest = {
  appid: ``, // appid
}

const staticProd = {
  appid: ``, // appid
}

// 获取当前环境变量
function getCurrConfig(): any {
  // 区分环境选择静态资源地址
  const env = process.env.VUE_APP_ENV;

  let exportConfig = {};
  if (env === "prod") {
    exportConfig = staticProd;
  } else if (env === "test") {
    exportConfig = staticTest;
  } else {
    exportConfig = staticDev;
  }

  return exportConfig;
}

const envBaseInfo = getCurrConfig();
Object.assign(baseInfo, envBaseInfo)

export { baseInfo };